package com.xored.glance.internal.ui.viewers;

import org.eclipse.swt.widgets.Tree;

import com.xored.glance.ui.controls.tree.TreeStructSource;
import com.xored.glance.ui.controls.tree.content.TreeContent;
import com.xored.glance.ui.viewers.tree.TreeViewerContent;
import com.xored.glance.ui.viewers.utils.ViewerUtils;

public class TreeViewerSource extends TreeStructSource {

	public TreeViewerSource(Tree tree) {
		super(tree);
	}

	@Override
	protected TreeContent createContent() {
		return new TreeViewerContent(ViewerUtils.getTreeViewer(getControl()));
	}

}
